package com.taldh.design.patterns.singleton;

/**
 * date: 2020/5/24
 *
 * @author 袁小黑
 * @version 1.0.0
 */

public class InitializingOnDemandHolderIdiom {

    /**
     * private constructor.
     */
    private InitializingOnDemandHolderIdiom() {
    }

    public InitializingOnDemandHolderIdiom getInstance() {
        return HelperHolder.INSTANCE;
    }

    private static class HelperHolder {
        private static final InitializingOnDemandHolderIdiom INSTANCE = new InitializingOnDemandHolderIdiom();
    }
}
